import Msite from 'pages/MainSite/Msite'
import Search from 'pages/Search/Search'
import Order from 'pages/Order/Order'
import Profile from 'pages/Profile/Profile'
import Login from 'pages/Login/login'
import Shop from 'pages/Shop/Shop'
import Goods from 'pages/Shop/Goods/goods'
import Info from 'pages/Shop/Info/info'
import Ratings from 'pages/Shop/Ratings/ratings'

export default [
  {
    path:'/msite',
    component: Msite,
    meta:{
      footerShow:true
    }
  },
  {
    path:'/search',
    component: Search,
    meta:{
      footerShow:true
    }
  },
  {
    path:'/order',
    component: Order,
    meta:{
      footerShow:true
    }
  },
  {
    path:'/profile',
    component: Profile,
    meta:{
      footerShow:true
    }
  },
  {
    path:'/login',
    component: Login,
    meta:{
      footerShow:false
    }
  },
  {
    path:'/shop',
    component: Shop,
    children:[
      {
        path: '/shop/goods',
        component: Goods
      },
      {
        path: '/shop/ratings',
        component: Ratings
      },
      {
        path: '/shop/info',
        component: Info
      },
      {
        path: '',
        redirect: '/shop/goods'
      }
    ]
  },
  {
    path:'/',
    redirect: '/Msite'
  },

]
